home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: sscanf bug??????
- Date: Thu, 22 Feb 96 23:41:15 GMT
- Organization: none
- Distribution: world
- Message-ID: <825032475snz@genesis.demon.co.uk>
- References: <4fimvo$82s@fnord.dfw.net> <10FEB199622213548@erich.triumf.ca> <824160515snz@genesis.demon.co.uk> <4gh6uf$i2@mailhub.scitec.com.au>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4gh6uf$i2@mailhub.scitec.com.au>
- ramsesy@rd.scitec.com.au "Ramses Youhana" writes:
-
- >You have to be careful when saying that %ld and %d are interchangeable,>
- >as a compiler for a 32 bit processor (such as the M68302) may not support the
- >"l" in the %ld format.
-
- All ANSI conforming compilers are required to support %ld. Converting a long
- argument with %d results in undefined behaviour as far as C is concerned
- whether it happens to work on your implementation or not. Even if it does
- that is not a good reason for using it.
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-